Skip to content

chore: optimize workflow to avoid unnecessary runs - #15

Merged
olamide226 merged 3 commits into
mainfrom
chore/optimize-ci-runs
Feb 25, 2026
Merged

chore: optimize workflow to avoid unnecessary runs#15
olamide226 merged 3 commits into
mainfrom
chore/optimize-ci-runs

Conversation

@olamide226

Copy link
Copy Markdown
Collaborator

No description provided.

- Add workflow-level concurrency group (cancel-in-progress: false) so
  simultaneous pushes cannot race and leave a release PR half-tagged.
- Add recover-stale-releases job that runs before release-please on
  every push: creates any git tags where manifest version == package.json
  version but the tag is absent, then relabels merged release PRs from
  'autorelease: pending' to 'autorelease: tagged'. This auto-heals the
  'untagged merged release PRs outstanding - aborting' state without
  any manual intervention on future occurrences.
Copilot AI review requested due to automatic review settings February 25, 2026 16:14
@olamide226
olamide226 enabled auto-merge (squash) February 25, 2026 16:15
@olamide226
olamide226 merged commit eb542e7 into main Feb 25, 2026
11 checks passed
@olamide226
olamide226 deleted the chore/optimize-ci-runs branch February 25, 2026 16:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes GitHub Actions workflows to reduce unnecessary workflow runs and adds resilience to the release process through automated recovery of stale releases.

Changes:

  • Modified CI workflows (sdk, gateway, docs) to skip path-based change detection on push events, running CI unconditionally instead
  • Added concurrency control to release workflow to prevent race conditions between simultaneous release runs
  • Introduced automated recovery mechanism to create missing git tags and relabel stale release PRs, preventing release-please failures
  • Added comprehensive pull request template following conventional commit conventions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/sdk.yml Optimized to skip change detection on push events; status checks now PR-only
.github/workflows/gateway.yml Same optimization pattern as sdk.yml for gateway CI
.github/workflows/docs.yml Optimized change detection with workflow_dispatch support; status checks now PR-only
.github/workflows/release-sdk.yml Added concurrency control and stale release recovery job to prevent tagging failures
.github/pull_request_template.md New PR template with conventional commit format and structured checklist

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants